home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-03-20 | 3.4 KB | 93 lines | [TEXT/MPS ] |
- ;------------------------------------------------------------------------------
- ;
- ; FILENAME
- ; NewApp.a
- ;
- ; DESCRIPTION
- ; Contains the jump table for all of the messages we override except
- ; the old-application compatibility ones.
- ;
- ; COPYRIGHT
- ; Copyright © 1995 Apple Computer, Inc.
- ; All rights reserved.
- ;
- ; Modification history
- ; 10/04/95 - David Hayward - Version 1.0.4 modified code so that
- ; the driver can be build under MPW,
- ; Metrowerks, and Symantec. In general,
- ; all that was required to do this was
- ; to add an inline-assembly jumptable
- ; and to store all globals off of the
- ; message manager instance context.
- ; Also made a few changes so that the
- ; driver can be rebuilt to support any
- ; resolution by changing the #defines
- ; kResolution and kPatStretch in
- ; "CommonDefines.h"
- ;
- ; 06/14/95 - Dave Hersey - Version 1.0.3 to fix a bug in
- ; CustomBufferingAndIO.c when creating
- ; high-res PICTs, and to make the size
- ; of buffers more flexible.
- ;
- ; 05/26/95 - Dave Hersey - Version 1.0.2 to add the new 'outp'
- ; desktop printer resource in NewApp.c.
- ;
- ; 05/03/95 - Dave Hersey - Version 1.0.1 to fix some minor bugs in
- ; CustomBufferingAndIO.c.
- ;
- ; 01/14/95 - Dave Hersey - Created from the shell of a hollowed-out
- ; ImageWriter driver.
- ;
- ;--------------------------------------------------------------------------------
-
- CASE OBJ
- STRING ASIS
-
- EXPORT SD_JumpTable
- IMPORT SD_RasterDataIn ; Our override for GXRasterDataIn.
- IMPORT SD_ImageJob ; Our override for GXImageJob.
- IMPORT SD_StartSendPage ; Our override for GXStartSendPage.
- IMPORT SD_FinishSendPage ; Our override for GXFinishSendPage.
- IMPORT SD_SetupImageData ; Our override for GXSetupImageData.
- IMPORT SD_OpenConnection ; Our override for GXOpenConnection.
- IMPORT SD_CloseConnection ; Our override for GXCloseConnection.
- IMPORT SD_CleanupOpenConnection ; Our override for GXCleanupOpenConnection.
- IMPORT SD_BufferData ; Our override for GXBufferData.
- IMPORT SD_FreeBuffer ; Our override for GXFreeBuffer.
- IMPORT SD_WriteData ; Our override for GXWriteData.
- IMPORT SD_DumpBuffer ; Our override for GXDumpBuffer.
- IMPORT SD_DefaultDesktopPrinter ; Our override for GXDefaultDesktopPrinter.
-
- ;--------------------------------------------------------------------------------
- ; This code must be kept in sync with the assembly jump table
- ; in NewApp.c and the gxOverrideType resources in NewApp.r
- ;--------------------------------------------------------------------------------
-
- SD_JumpTable PROC ; Our main entry point.
-
- DC.L 0 ; Reserved for owner count.
-
- ; Raster messages
- JMP SD_RasterDataIn ; (offset = 4)
-
- ; Universal messages
- JMP SD_ImageJob ; (offset = 8)
- JMP SD_StartSendPage ; (offset = 12)
- JMP SD_FinishSendPage ; (offset = 16)
- JMP SD_SetupImageData ; (offset = 20)
- JMP SD_OpenConnection ; (offset = 24)
- JMP SD_CloseConnection ; (offset = 28)
- JMP SD_CleanupOpenConnection ; (offset = 32)
- JMP SD_BufferData ; (offset = 36)
- JMP SD_FreeBuffer ; (offset = 40)
- JMP SD_WriteData ; (offset = 44)
- JMP SD_DumpBuffer ; (offset = 48)
- JMP SD_DefaultDesktopPrinter ; (offset = 52)
-
- RTS ; this is here so that the
- ; entrypoint will be labled "Anon0"
-
- ENDPROC
- END
-